package com.example.edu.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.example.edu.entity.Course;

import com.example.edu.entity.excel.CoursePublishInfo;
import com.example.edu.entity.excel.CourseVoco;

import java.util.List;
import java.util.Map;
import com.baomidou.mybatisplus.extension.service.IService;
import com.example.edu.entity.frontvo.CourseQueryVo;
import com.example.edu.entity.frontvo.CourseWebVo;

/**
 * <p>
 * 课程 服务类
 * </p>
 *
 * @author testjava
 * @since 2020-07-02
 */
public interface CourseService extends IService<Course> {

	String saveCourse(CourseVoco courseVoco);

	CourseVoco getCourseVoco(String id);

	void updateCourseVoco(CourseVoco courseVoco);

	CoursePublishInfo getCoursePublishInfo(String id);

	void publishCourse(String id);

	Integer selectCount(Map<String, Object> map);

	List<CoursePublishInfo> getAllCoursePublishInfo();

	List<CoursePublishInfo> getAllCoursePublishInfoByMap(Map<String, Object> map);


	void deleteCoursePublishInfo(String courseId);

	List<Course> selectAllCourse();

    Map<String, Object> getFrontCourse(Page<Course> coursePage, CourseQueryVo courseQueryVo);

    CourseWebVo getFrontCourseInfoById(String courseId);


//	List<CoursePublishInfo> getAllCoursePublishInfoByMap(Map map);

}
